package com.example.config;

import com.example.repository.UserRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "com.example")
public class SpringConfig {

    @Bean(value = "userRepository2")
    public UserRepository userRepository() {
        return new UserRepository() {

        };
    }


}



